package com.zhanglinwei.openApiClient.exception;

import lombok.Getter;

@Getter
public class OpenApiParseException extends RuntimeException {

    private final String errorMsg;

    public OpenApiParseException(String errorMsg) {
        super(errorMsg);
        this.errorMsg = errorMsg;
    }

    public OpenApiParseException(String errorMsg, Throwable cause) {
        super(errorMsg, cause);
        this.errorMsg = errorMsg;
    }
}
